package com.hydong.novatest.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

/**
 * 星体实体，来自数据库
 */
@Entity(nameInDb = "all", createInDb = false)
public class StarRecordBean {
    @Id(autoincrement = true)
    @Property(nameInDb = "rowid")
    private Long id;            // 索引

    @Property(nameInDb = "category")
    private String category;    // 目录名，英文

    @Property(nameInDb = "no")
    private Long no;             // 标号

    @Property(nameInDb = "noExt")
    private String noExt;       // 标号扩展

    @Property(nameInDb = "nameEN")
    private String nameEN;      // 英文名

    @Property(nameInDb = "nameCN")
    private String nameCN;      // 中文名

    @Property(nameInDb = "ra")
    private Double ra;          // 赤经

    @Property(nameInDb = "dec")
    private Double dec;         // 赤纬

    @Property(nameInDb = "vmag")
    private Double vmag;        // 星等

    @Property(nameInDb = "sizeX")
    private Double sizeX;       // 尺寸（X）

    @Property(nameInDb = "sizeY")
    private Double sizeY;       // 尺寸（Y）

    @Property(nameInDb = "img")
    private String img;         // 图片

    @Property(nameInDb = "imgC")
    private String imgC;        // 图片版权


    @Property(nameInDb = "typeCode")
    private Long typeCode;       // 目标类型

    @Property(nameInDb = "remark")
    private String remark;      // 目标备注

    @Property(nameInDb = "con")
    private String con;         // 所在星座

    @Property(nameInDb = "brightness")
    private String brightness;  // 亮度【SH2】

    @Property(nameInDb = "shape")
    private String shape;       // 形状【SH2】

    @Property(nameInDb = "radius")
    private String radius;      // 半径【行星】

    @Property(nameInDb = "diameter")
    private Long diameter;       // 直径【行星】

    @Property(nameInDb = "mass")
    private Double mass;        // 重量【行星】

    @Property(nameInDb = "discoverer")
    private String discoverer;  // 发现者【M】

    @Property(nameInDb = "dYearEN")
    private String dYearEN;     // 发现年份，英【M】

    @Property(nameInDb = "dYearCN")
    private String dYearCN;     // 发现年份，中【M】

    @Property(nameInDb = "vmag1sd")
    private String vmag1sd;     // 第一颗星等【双星】

    @Property(nameInDb = "vmag2nd")
    private String vmag2nd;     // 第二颗星等【双星】

    public StarRecordBean(Double ra, Double dec) {
        this.ra = ra;
        this.dec = dec;
    }

    public StarRecordBean(String category, String name, double mag, double ra, double dec, double size) {
        this.category = category;
        this.nameEN = name;
        this.nameCN = name;
        this.vmag = mag;
        this.ra = ra;
        this.dec = dec;
        this.sizeX = size;
        this.sizeY = 0.0;
    }

    @Generated(hash = 568365219)
    public StarRecordBean(Long id, String category, Long no, String noExt, String nameEN,
                          String nameCN, Double ra, Double dec, Double vmag, Double sizeX, Double sizeY,
                          String img, String imgC, Long typeCode, String remark, String con,
                          String brightness, String shape, String radius, Long diameter, Double mass,
                          String discoverer, String dYearEN, String dYearCN, String vmag1sd,
                          String vmag2nd) {
        this.id = id;
        this.category = category;
        this.no = no;
        this.noExt = noExt;
        this.nameEN = nameEN;
        this.nameCN = nameCN;
        this.ra = ra;
        this.dec = dec;
        this.vmag = vmag;
        this.sizeX = sizeX;
        this.sizeY = sizeY;
        this.img = img;
        this.imgC = imgC;
        this.typeCode = typeCode;
        this.remark = remark;
        this.con = con;
        this.brightness = brightness;
        this.shape = shape;
        this.radius = radius;
        this.diameter = diameter;
        this.mass = mass;
        this.discoverer = discoverer;
        this.dYearEN = dYearEN;
        this.dYearCN = dYearCN;
        this.vmag1sd = vmag1sd;
        this.vmag2nd = vmag2nd;
    }

    @Generated(hash = 37600831)
    public StarRecordBean() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCategory() {
        return this.category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public Long getNo() {
        return this.no;
    }

    public void setNo(Long no) {
        this.no = no;
    }

    public String getNoExt() {
        return this.noExt;
    }

    public void setNoExt(String noExt) {
        this.noExt = noExt;
    }

    public String getNameEN() {
        return this.nameEN;
    }

    public void setNameEN(String nameEN) {
        this.nameEN = nameEN;
    }

    public String getNameCN() {
        return this.nameCN;
    }

    public void setNameCN(String nameCN) {
        this.nameCN = nameCN;
    }

    public Double getRa() {
        return this.ra;
    }

    public void setRa(Double ra) {
        this.ra = ra;
    }

    public Double getDec() {
        return this.dec;
    }

    public void setDec(Double dec) {
        this.dec = dec;
    }

    public Double getVmag() {
        return this.vmag;
    }

    public void setVmag(Double vmag) {
        this.vmag = vmag;
    }

    public Double getSizeX() {
        return this.sizeX;
    }

    public void setSizeX(Double sizeX) {
        this.sizeX = sizeX;
    }

    public Double getSizeY() {
        return this.sizeY;
    }

    public void setSizeY(Double sizeY) {
        this.sizeY = sizeY;
    }

    public String getImg() {
        return this.img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getImgC() {
        return this.imgC;
    }

    public void setImgC(String imgC) {
        this.imgC = imgC;
    }

    public Long getTypeCode() {
        return this.typeCode;
    }

    public void setTypeCode(Long typeCode) {
        this.typeCode = typeCode;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCon() {
        return this.con;
    }

    public void setCon(String con) {
        this.con = con;
    }

    public String getBrightness() {
        return this.brightness;
    }

    public void setBrightness(String brightness) {
        this.brightness = brightness;
    }

    public String getShape() {
        return this.shape;
    }

    public void setShape(String shape) {
        this.shape = shape;
    }

    public String getRadius() {
        return this.radius;
    }

    public void setRadius(String radius) {
        this.radius = radius;
    }

    public Long getDiameter() {
        return this.diameter;
    }

    public void setDiameter(Long diameter) {
        this.diameter = diameter;
    }

    public Double getMass() {
        return this.mass;
    }

    public void setMass(Double mass) {
        this.mass = mass;
    }

    public String getDiscoverer() {
        return this.discoverer;
    }

    public void setDiscoverer(String discoverer) {
        this.discoverer = discoverer;
    }

    public String getDYearEN() {
        return this.dYearEN;
    }

    public void setDYearEN(String dYearEN) {
        this.dYearEN = dYearEN;
    }

    public String getDYearCN() {
        return this.dYearCN;
    }

    public void setDYearCN(String dYearCN) {
        this.dYearCN = dYearCN;
    }

    public String getVmag1sd() {
        return this.vmag1sd;
    }

    public void setVmag1sd(String vmag1sd) {
        this.vmag1sd = vmag1sd;
    }

    public String getVmag2nd() {
        return this.vmag2nd;
    }

    public void setVmag2nd(String vmag2nd) {
        this.vmag2nd = vmag2nd;
    }

    @Override
    public String toString() {
        return "StarRecordBean{" +
                "id=" + id +
                ", category='" + category + '\'' +
                ", no=" + no +
                ", noExt='" + noExt + '\'' +
                ", nameEN='" + nameEN + '\'' +
                ", nameCN='" + nameCN + '\'' +
                ", ra=" + ra +
                ", dec=" + dec +
                ", vmag=" + vmag +
                ", sizeX=" + sizeX +
                ", sizeY=" + sizeY +
                ", img='" + img + '\'' +
                ", imgC='" + imgC + '\'' +
                ", typeCode=" + typeCode +
                ", remark='" + remark + '\'' +
                ", con='" + con + '\'' +
                ", brightness='" + brightness + '\'' +
                ", shape='" + shape + '\'' +
                ", radius='" + radius + '\'' +
                ", diameter=" + diameter +
                ", mass=" + mass +
                ", discoverer='" + discoverer + '\'' +
                ", dYearEN='" + dYearEN + '\'' +
                ", dYearCN='" + dYearCN + '\'' +
                ", vmag1sd='" + vmag1sd + '\'' +
                ", vmag2nd='" + vmag2nd + '\'' +
                '}';
    }
}
